/*
package com.demo.listener;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CommonListener {



*/
/**
 * 监听消费消息
 *
 * @param message
 *//*


    @RabbitListener(queues = "${basic.info.mq.queue.name}", containerFactory = "singleListenerContainer")
    public void consumeMessage(@Payload byte[] message) {
        try {
            //TODO：接收String
            String result = new String(message, "UTF-8");
            log.info("接收String消息： {} ", result);
        } catch (Exception e) {
            log.error("监听消费消息 发生异常： ", e.fillInStackTrace());
        }
    }
}
*/
